package com.shop.feign;

import com.shop.feign.impl.SeckillFeignImpl;
import com.shop.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "website-seckill-9999",fallback = SeckillFeignImpl.class)
public interface SeckillFeign {
    @GetMapping("/seckill/getSeckillBySkuId/{skuId}")
    public R getSeckillBySkuId(@PathVariable("skuId") Long skuId);
}
